#include <Arduino.h>
#include <IRremote.h>

// put function declarations here:
int data_pin = 2;
IRrecv irrecv(data_pin);
decode_results results;

void setup()
{
  // put your setup code here, to run once:
  Serial.begin(9600);
  irrecv.enableIRIn();
}

void loop()
{
  // put your main code here, to run repeatedly:
  if (irrecv.decode(&results))
  {
    Serial.println(results.value, HEX);
    irrecv.resume();
  }
  delay(500);
}

// put function definitions here: